Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Short-circuit with vectorisation ph.assert_array_elements() #236

Merged
merged 7 commits into from
Feb 28, 2024

Conversation

honno
Copy link
Member

@honno honno commented Feb 26, 2024

And general test_eye improvements. Carries on the work by @jakevdp in #200 (separate PR to make things easier to track).

Requires signbit released in the 2023.12 spec, which isn't even supported yet in array API adoptions like jax.experimental.array_api. Probably what I'll do is ignore asserting pos/neg zeros for most of the tests where it's not really relevant, so we get the vectorisation benefits regardless of API version and adoption. I'll leave that for a future PR as I'd just want to mull that over, and want to see what the shape of vectorising everything looks like first anywho. This PR is essentially a proof of concept to be applied everywhere possible. Let's just ignore the signbit stuff if not available as the immediate perf benefits for libraries probably always trumps testing signed zero stuff.

@honno honno force-pushed the assert-array-elements-vectorisation branch 2 times, most recently from 2cfaeb7 to 7b71693 Compare February 26, 2024 16:27
@honno honno force-pushed the assert-array-elements-vectorisation branch from c38f7a4 to 94e716c Compare February 27, 2024 16:22
@honno honno force-pushed the assert-array-elements-vectorisation branch from 94e716c to 82125d1 Compare February 27, 2024 16:24
@honno honno merged commit 2c12312 into data-apis:master Feb 28, 2024
4 checks passed
@honno honno deleted the assert-array-elements-vectorisation branch February 28, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants